import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { UsersTableConfigResolver } from '@modules/home/pages/user/users-table-config.resolver';
import { Authority } from '@shared/models/authority.enum';
import { EntityDetailsPageComponent } from '@home/components/entity/entity-details-page.component';
import { ConfirmOnExitGuard } from '@core/guards/confirm-on-exit.guard';
import { entityDetailsPageBreadcrumbLabelFunction } from '@home/pages/home-pages.models';
import { BreadCrumbConfig } from '@shared/components/breadcrumb';
import { EntitiesTableComponent } from '../../components/entity/entities-table.component';
import { VideoTableConfigResolver } from './video-table-config.resolver';

const routes: Routes = [
    {
        path: "view-conf",
        component: EntitiesTableComponent,
        data: {
            auth: [Authority.TENANT_ADMIN, Authority.CUSTOMER_USER],
            title: 'video.title',
            assetsType: 'tenant',
            breadcrumb: {
                label: 'video.label',
                icon: 'videocam'
            }
        },
        resolve: {
            entitiesTableConfig: VideoTableConfigResolver
        },
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule],
    providers: [
        VideoTableConfigResolver
    ]
})
export class VideoConfRoutingModule { }
